lib: Use OtTmpFile for static delta processing
authorColin Walters <walters@verbum.org>
Sat, 24 Jun 2017 14:28:09 +0000 (10:28 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 26 Jun 2017 17:17:32 +0000 (17:17 +0000)
commitaf3a96755ba4d897852fa8f2cf483c0c21adc40b
treea953009c0578db9ff44c0d19081dc53932b80707
parent4dee1984dccace10572192d2f63b7a6fc7d453ee
lib: Use OtTmpFile for static delta processing

The `OstreeRepoContentBareCommit` struct was basically an `OtTmpFile`, so let's
make it one. I moved the "convert to `GOutputStream`" logic into the callers,
since that bit can't fail; it makes the implementation much simpler since we can
just return the result of `ot_open_tmpfile_linkable_at()`.

Prep for `GLnxTmpfile` porting.

Closes: #957
Approved by: jlebon
src/libostree/ostree-repo-commit.c
src/libostree/ostree-repo-private.h
src/libostree/ostree-repo-pull.c
src/libostree/ostree-repo-static-delta-processing.c